//
//  MovieTableViewCell.m
//  doubanMovie
//
//  Created by lanou3g on 15/11/20.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "MovieTableViewCell.h"
#import "MovieDetail.h"

@interface MovieTableViewCell ()

//@property (nonatomic,strong) NSString *movieID;

@end

@implementation MovieTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self allViews];
    }
    return self;
}

- (void)allViews
{


    UIImage *image = [UIImage imageNamed:@"bg_eventlistcell@2x.png"];
    self.imageview = [[UIImageView alloc] initWithImage:image];

    self.imageview.frame = CGRectMake(10, 10, 350, 150);
    
    self.pictureView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 100, 130)];
    [self.imageview addSubview:self.pictureView];
    
    self.movieNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(120, 10, 200, 130)];
//    self.movieNameLabel.backgroundColor = [UIColor redColor];
    [self.imageview addSubview:self.movieNameLabel];
    
    
    [self.contentView addSubview:self.imageview];

    

}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
